package com.note.common.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @projectName：wow-note
 * @package：com.note.common.dto
 * @className：UserModifyDto
 * @author：热伊木
 * @email：uyevan@163.com
 * @description：用户个人信息更新数据接受模型
 * @date：2024-06-29 21:37
 * @version：1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserModifyDto {
    @Schema(name = "username", description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;
    @Schema(name = "nickname", description = "昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickname;
}
